package com.example.demo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Fyly
 * @since 2019-05-07
 */
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品名
     */
    @TableField("goodsName")
    private String goodsName;
    /**
     * 所属菜单名称
     */
    @TableField("menuName")
    private String menuName;
    /**
     * 商品缩略图
     */
    @TableField("goodsImg")
    private String goodsImg;
    /**
     * 商品类型id
     */
    @TableField("goodsTypeId")
    private Integer goodsTypeId;
    /**
     * 商品所属品牌id
     */
    @TableField("brandId")
    private Integer brandId;
    /**
     * 商品排序
     */
    @TableField("goodsSort")
    private Integer goodsSort;
    /**
     * 商品价格
     */
    @TableField("goodsPrice")
    private Float goodsPrice;
    /**
     * 集赞价 非集赞商品价格为0
     */
    @TableField("goodsProPrice")
    private Float goodsProPrice;
    /**
     * 库存
     */
    @TableField("goodsNum")
    private Integer goodsNum;
    /**
     * 上架状态 1上架 0下架
     */
    @TableField("goodsState")
    private Integer goodsState;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getGoodsImg() {
        return goodsImg;
    }

    public void setGoodsImg(String goodsImg) {
        this.goodsImg = goodsImg;
    }

    public Integer getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Integer goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getGoodsSort() {
        return goodsSort;
    }

    public void setGoodsSort(Integer goodsSort) {
        this.goodsSort = goodsSort;
    }

    public Float getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Float goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Float getGoodsProPrice() {
        return goodsProPrice;
    }

    public void setGoodsProPrice(Float goodsProPrice) {
        this.goodsProPrice = goodsProPrice;
    }

    public Integer getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(Integer goodsNum) {
        this.goodsNum = goodsNum;
    }

    public Integer getGoodsState() {
        return goodsState;
    }

    public void setGoodsState(Integer goodsState) {
        this.goodsState = goodsState;
    }

    @Override
    public String toString() {
        return "Goods{" +
        "id=" + id +
        ", goodsName=" + goodsName +
        ", menuName=" + menuName +
        ", goodsImg=" + goodsImg +
        ", goodsTypeId=" + goodsTypeId +
        ", brandId=" + brandId +
        ", goodsSort=" + goodsSort +
        ", goodsPrice=" + goodsPrice +
        ", goodsProPrice=" + goodsProPrice +
        ", goodsNum=" + goodsNum +
        ", goodsState=" + goodsState +
        "}";
    }
}
